package top.chukongxiang.monitorservice.components;

import java.security.Principal;

/**
 * @author 楚孔响
 * @version 1.0
 * @date 2023/8/28 14:50
 */
public class SockjsPrincipal implements Principal {

    private final String userId;

    public SockjsPrincipal(String userId) {
        this.userId = userId;
    }

    @Override
    public String getName() {
        return userId;
    }
}
